
<link rel="stylesheet" type="text/css" href="../core/resource/css/coupon.css">
<div class='fui-page  fui-page-current coupon-my-page'>
	<div class="fui-header">
		<div class="fui-header-left">
			<a class="back"></a>
		</div>
		<div class="title">我的优惠券</div>
		<div class="fui-header-right">&nbsp;</div>
	</div>
	<div class='fui-content'>

		<div class="coupon-headblock">
			<div class="top-layer"></div>
			<div class="line-layer"></div>
			<div class="bottom-layer"></div>
			<div class="gold"></div>
			<div class="link-text">请至【<a href="{{pagedata.url}}">我的优惠券</a>】查看</div>
			<div class="paper">
				<div class="title">恭喜获得</div>
				<div class="text">
					<i class="d1"></i>
					<i class="d2"></i>
					<p class="t1"><span>{{pagedata.total}}</span>张优惠券</p>
				</div>
				<i class="line"></i>
				<i class="dot-top"></i>
				<i class="dot-left"></i>
				<i class="dot-right"></i>
				<i class="dot-1"></i>
				<i class="dot-2"></i>
				<i class="dot-3"></i>
				<i class="dot-4"></i>
				<i class="dot-5"></i>
				<i class="dot-6"></i>
			</div>
		</div>

		<div id="container" ng-repeat="item in pagedata.list" class="coupon-container coupon-index-list">
		<a href="{{item.detailurl}}" class="coupon-index-list-a  {{item.color}}">
				
					<div class="fui-list coupon-list">
						<span class="coupon-ling"><img src="../addons/jy_weishop/resource/images/coupon/{{coupon.imgname}}.png" alt=""></span>
						<div class="fui-list-inner coupon-index-list-left">
							<b  ng-if="item.settitlecolor==1" style="width: 92px ; text-align:center ;background:{{titlecolor.titlecolor}}">{{item.tagtitle}}</b>
							<b   style="width: 92px ; text-align:center ;">{{item.tagtitle}}</b>
							
							<div class="coupon-index-list-info fui-list">
								<div class="fui-list-media">
									<img ng-src="{{tomedia(coupon.thumb) || '/addons/jy_weishop/resource/images/coupon/coupon-list-img.png'}}" alt="">
								</div>
								<div class="fui-list-inner">
									<h3>{{item.title}}</h3>
									<p class="coupon-full">{{item.title3}}  {{item.title2}}</p>
									<p class="coupon-time">
									<div ng-if="pagedata.coupon.timelimittype==0" >有效期:
										永久有效
									</div>
									<div ng-if="item.pass==1" >有效期:

										已过期
									</div>
									<div ng-if="item.pass==0" >有效期:

										{{pagedata.coupon.limittimes}}
									</div>	
									<div ng-if="item.merch_id!=''" >有效期:

										限购[{{item.merchname}}]店铺商品
									</div>					
										
									</p>
								</div>
							</div>
						</div>
						<div class="fui-list-media coupon-index-list-right">
							<div class="forth0 circle coupon-list-canvas"></div>
							<i class="coupon-list-ling">
								{{pagedata.coupon.check ==2 ? '已过期': pagedata.coupon.check ==1 ? '已使用':'立即使用'}}
							</i>
						</div>
					</div>
				</a>
		</div>

		<a href="{{pagedata.shopurl}}">
			<div class="btn btn-danger block" style="margin: 0 0.5rem 0.5rem">返回商城查看更多商品</div>
		</a>

	</div>
</div>
